package cn.imu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StatisticsEntity {
    private int id;
    private  String userName;
    private Date StatisticsDate;
    private int failCount;
    private  int successCount;
    private int loginCount;


    public void setLoginCount(int failCount,int successCount){
        this.loginCount=failCount+successCount;
    }
}
